//
// Created by Thinkpad on 2025/10/29.
//

#include <iostream>
using namespace std;

int main() {
    cout << endl;
    cout << "tolower and toupper : " << endl;

    char original_str[]{"Home,The feelling of belonging"};
    char dest_str[size(original_str)];

    // Turn this to uppercase.Change the array in place
    for (size_t i = 0; i < size(original_str); i++) {
        dest_str[i] = toupper(original_str[i]);
    }

    cout << "Original string: " << original_str << endl;
    cout << "Toupper string: " << dest_str << endl;

    // Turn this to lowercase
    for (size_t i{};i < size(original_str);++i) {
        dest_str[i] = tolower(original_str[i]);
    }

    cout << "Tolower string: " << dest_str << endl;

    return 0;
}